﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CountShow.aspx.cs" Inherits="NetCounter_CountShow" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>统计系统</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<meta http-equiv="refresh" content="60">
		<style type="text/css">
    html, body{margin:0;pading:0;}
    TD { FONT-SIZE: 12px; }
	.b12 { FONT-SIZE: 12px; }
	.dh3 {
	        font-size: 12px;
	        color: #003366;
	        filter: DropShadow(Color=ffffff, OffX=1, OffY=1, Positive=1);
        }
		</style>
		<script language="javascript">
		<!--
		function ckform1()
		{
			if(document.Form1.WebName.value =="")
			{
				alert("请输入网站名称！");
				document.Form1.WebName.focus();
				return false;
			}
			if(document.Form1.WebUrl.value =="")
			{
				alert("请输入网站地址！");
				document.Form1.WebUrl.focus();
				return false;
			}
			if(document.Form1.lastnum.value=="")
			{
				alert("请输入最后来访者信息条数！");
				document.Form1.lastnum.focus();
				return false;
			}
			else
				cknum();
		}
		
		function cknum()
		{
			if(document.Form1.lastnum.value!="")
			{
				var zz=/^\d{1,4}$/;
				if(!zz.exec(document.Form1.lastnum.value))
				{
					alert("你输入的最后来访者信息条数格式有误，请正确填写！");
					document.Form1.lastnum.focus();
					return false;
				}
			}
		}
		//-->
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server" >
		<div class="dh3" style="height:26px;padding-top:5px;background:url(images/title_bar.png);vertical-align:middle;">&nbsp;&nbsp;&nbsp;<img src="images/home.gif" style="vertical-align:bottom;" />&nbsp;&nbsp;&nbsp;您现在的位置：首页&nbsp;»&nbsp;网站统计&nbsp;»&nbsp;<font color="#FF0000"><%=title%></font></div>
        <div style="padding:5px;">
			<table border="0" cellpadding="0" cellspacing="2" width="750" bgcolor="#FFFFFF" style="border: 1px solid #6699FF;">
				<tr align="center" bgcolor="#6699ff">
					<td height="20"><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=main'"><font color="#FFFFFF">简要数据</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=hour'"><font color="#FFFFFF">24小时统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=day'"><font color="#FFFFFF">日统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=month'"><font color="#FFFFFF">月统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=osexp'"><font color="#FFFFFF">系统/浏览器统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=where'"><font color="#FFFFFF">地区统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=referer'"><font color="#FFFFFF">来源统计</font></span></td>
					<td><span style="CURSOR: hand" onClick="Javascript:location.href='CountShow.aspx?act=last20'"><font color="#FFFFFF">来访者信息列表</font></span></td>
				</tr>
			</table>
			<%if(action=="admin"){%>
			<table><tr><td height="5"></td></tr></table>
			<TABLE border="0" cellpadding="0" cellspacing="2" width="750" id="AutoNumber3" bgcolor="#ffffff"
				style="border: 1px solid #6699FF;">
				<tr>
					<td height="28" align="center" style="FONT-SIZE:14px;COLOR:#ffffff" bgcolor="#6699ff"><b>管理网站基本信息</b></td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#eeeeee">
							<tr bgcolor="#ffffff">
								<td width="122" nowrap>&nbsp;网站名称：</td>
								<td width="202">
									<input name="WebName" type="text" class="b12" id="WebName" maxLength="30" runat="server"></td>
								<td width="86" nowrap>&nbsp;网站地址：</td>
								<td>
									<input name="WebUrl" type="text" class="b12" id="WebUrl" maxLength="100" runat="server"></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td nowrap>&nbsp;网站管理员：</td>
								<td>
									<input name="WebMaster" type="text" class="b12" id="WebMaster" maxLength="20" runat="server">
								</td>
								<td nowrap>&nbsp;网站信箱：</td>
								<td>
									<input name="WebEmail" type="text" class="b12" id="WebEmail" maxLength="100" runat="server"></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td nowrap>&nbsp;最后来访者信息条数：</td>
								<td colspan="3">
									<input name="lastnum" type="text" class="b12" id="lastnum" onblur="cknum();" size="10"
										maxLength="3" runat="server"> <font color="#ff0000">*</font> 如果没有需要请不要经常更改数值，默认为20条。</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td valign="top" nowrap>&nbsp;网站介绍：</td>
								<td colspan="3">
									<textarea name="WebExp" class="b12" style="WIDTH:600px;HEIGHT:100px" id="WebExp" runat="server"></textarea></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td height="28" valign="top" nowrap>&nbsp;</td>
								<td colspan="3">
									<asp:Button id="btn_submit" runat="server" Text="提 交" OnClick="btn_submit_Click"></asp:Button>&nbsp; <font color="#ff0000">
										*</font> 请完整的填写以上内容,提交后网站计数器开始生效.</td>
							</tr>
						</table>
					</td>
				</tr>
			</TABLE>
			<%}%>
			<table><tr><td height="5"></td></tr></table>
			<%if(title!="" && strval!=""){%>
			<table width="750" border="0" cellspacing="2" cellpadding="1" style="border: 1px solid #6699FF;"
				bgcolor="#EEEEEE">
				<tr bgcolor="#FFFFFF">
					<td height="26" bgcolor="#FFFFFF">
						<table border="0">
							<tr valign="middle">
								<td><img height="14" src="images/bar.gif"></td>
								<td><b><%=title%></b></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="1" bgcolor="#6699FF"></td>
				</tr>
				<tr bgcolor="#FFFFFF" align="center">
					<td height="180" bgcolor="#FFFFFF"><%=strval%></td>
				</tr>
			</table>
			<%}%>
			</div>
		</form>
	</body>
</HTML>

